# -*- coding: utf-8 -*-
"""
__author__ = 'bingo'
__date__ = '2019/2/24'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
              ┏┓      ┏┓
            ┏┛┻━━━┛┻┓
            ┃      ☃      ┃
            ┃  ┳┛  ┗┳  ┃
            ┃      ┻      ┃
            ┗━┓      ┏━┛
                ┃      ┗━━━┓
                ┃  神兽保佑    ┣┓
                ┃　永无BUG！   ┏┛
                ┗┓┓┏━┳┓┏┛
                  ┃┫┫  ┃┫┫
                  ┗┻┛  ┗┻┛
"""
from django.urls import path, re_path
from . import views
app_name='news'

urlpatterns=[
    path('',views.IndexView.as_view(),name='index'),
    path('article/',views.ArticleListView.as_view(),name='article_list'),
    re_path(r'details/(?P<article_id>\d+)/',views.ArticleDetailsView.as_view(),name='article_detail'),
    path('search/',views.SearchView(),name='search'),
    path('comments/<int:article_id>/',views.ArticleCommentsView.as_view(),name='article_comments'),
]